package com.zzyl.nursing.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.zzyl.common.annotation.Excel;
import com.zzyl.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 来访记录对象 visit_record
 * 
 * @author ruoyi
 * @date 2025-08-30
 */
@Data
public class VisitRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 来访类型(0-参观来访,1-探访来访) */
    @Excel(name = "来访类型(0-参观来访,1-探访来访)")
    private Integer visitType;

    /** 来访人姓名 */
    @Excel(name = "来访人姓名")
    private String name;

    /** 电话号 */
    @Excel(name = "电话号")
    private String phone;

    /** 访问人(老人姓名) */
    @Excel(name = "访问人(老人姓名)")
    private String visitor;

    /** 来访时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date visitTime;

    /** 关联老人表ID(逻辑外键) */
    private Long elderId;



}
